package com.atguigu.edu.feign;


import com.atguigu.edu.entity.vo.MemberVo;
import com.atguigu.edu.feign.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-ucenter", fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {

    @GetMapping("/ucenter/member/getMemberInfoById/{memberId}")
    public MemberVo getMemberInfoById(@PathVariable("memberId") String memberId);
}
